Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
victory-core
Advanced tools
The victory-core npm package is a part of the Victory library, which is a collection of composable React components for building interactive data visualizations. The core package provides essential utilities and components that are used across the Victory ecosystem.
Data Utilities
Victory-core provides utilities for formatting and manipulating data, which can be used to prepare data for visualization.
const { Data } = require('victory-core');
const data = [
{ x: 1, y: 2 },
{ x: 2, y: 3 },
{ x: 3, y: 5 }
];
const formattedData = Data.formatData(data);
console.log(formattedData);
Animation
Victory-core includes components for animating data changes, which can be used to create dynamic and interactive visualizations.
const { VictoryAnimation } = require('victory-core');
const React = require('react');
const { render } = require('react-dom');
const AnimatedComponent = () => (
<VictoryAnimation duration={1000} data={{ x: 10 }}>
{(newProps) => {
return <div>{newProps.x}</div>;
}}
</VictoryAnimation>
);
render(<AnimatedComponent />, document.getElementById('root'));
Themes
Victory-core provides theming capabilities, allowing users to apply consistent styles across their visualizations.
const { VictoryTheme } = require('victory-core');
const theme = VictoryTheme.grayscale;
console.log(theme);
Recharts is a composable charting library built on React components. It provides a wide range of chart types and is known for its simplicity and ease of use. Compared to victory-core, Recharts offers a more extensive set of pre-built chart components but may not be as flexible in terms of customization.
Nivo provides a rich set of data visualization components built on top of D3 and React. It offers a variety of chart types and is highly customizable. Nivo is similar to victory-core in terms of flexibility and customization but leverages D3 for more complex visualizations.
React-vis is a library for data visualization developed by Uber. It provides a set of React components for creating common charts and graphs. React-vis is known for its simplicity and ease of integration with React applications. Compared to victory-core, react-vis may have fewer customization options but is easier to get started with.
victory-core@30.0.0
exports packages that are used by several Victory components:
VictoryAnimation
VictoryClipContainer
VictoryContainer
VictoryLabel
VictoryPortal
and Portal
VictoryTheme
VictoryTransition
Arc
, Border
/ Box
, Circle
, ClipPath
, LineSegment
(formerly Axis
/ Grid
), Line
, Path
, Point
, Rect
, Text
, TSpan
, Whisker
addEvents
, Axis
, Collection
, CommonProps
, Data
, DefaultTransitions
, Domain
, Events
, Helpers
, Immutable
, LabelHelpers
, Log
, PropTypes
, Scale
, Selection
, Style
, TextSize
, Timer
, Transitions
, Wrapper
Please visit our documentation site to read more about these components https://formidable.com/open-source/victory
31.2.0 (2019-01-27)
Axis improvements
axisValue
prop for both cartesian and polar charts. This prop allows users to position an axis relative to a value on the opposite axis. Values may be given as numbers, dates, or strings. This prop only works for axis components when they are nested within VictoryChart
. Standalone axes can still be positioned using offsetX
and offsetY` props.Removes all deprecated lifecycle methods
componentWillReceiveProps
lifecycle methods and adds shouldComponentUpdate
logic for higher level components. Previously only the lowest level components performed sCU
checks.componentWillMount
with componentDidMount
bug fixes
FAQs
Victory Core
The npm package victory-core receives a total of 231,475 weekly downloads. As such, victory-core popularity was classified as popular.
We found that victory-core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 21 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.